/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: nu uc
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_test_actionsDetachedCriteria extends AbstractORMDetachedCriteria {
    public final IntegerExpression id;
    public final StringExpression name;

    public T_test_actionsDetachedCriteria() {
	super(org.testis.orm.classes.T_test_actions.class,
		org.testis.orm.classes.T_test_actionsCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	name = new StringExpression("name", this.getDetachedCriteria());
    }

    public T_test_actionsDetachedCriteria(DetachedCriteria aDetachedCriteria) {
	super(aDetachedCriteria,
		org.testis.orm.classes.T_test_actionsCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	name = new StringExpression("name", this.getDetachedCriteria());
    }

    public T_test_actionlistDetachedCriteria createT_test_actionlistCriteria() {
	return new T_test_actionlistDetachedCriteria(
		createCriteria("ORM_T_test_actionlist"));
    }

    public T_test_module_action_paramtersDetachedCriteria createT_test_module_action_paramtersCriteria() {
	return new T_test_module_action_paramtersDetachedCriteria(
		createCriteria("ORM_T_test_module_action_paramters"));
    }

    public T_test_actions uniqueT_test_actions(PersistentSession session) {
	return (T_test_actions) super.createExecutableCriteria(session)
		.uniqueResult();
    }

    public T_test_actions[] listT_test_actions(PersistentSession session) {
	List list = super.createExecutableCriteria(session).list();
	return (T_test_actions[]) list.toArray(new T_test_actions[list.size()]);
    }
}
